package gui5e;

import java.util.HashMap;
import java.util.Map;

import controlP5.Accordion;
import controlP5.ControlP5;
import controlP5.Group;
import processing.core.*;

public abstract class Panel{ 
	
	
	// fields
	public int size_;
	 int priority_;
	 public PApplet parent_;
	 int sizeTarget_;
	 public char mode_; // 's','h','v','m' -> show, hide, visible, minimized
	 int x;
	 int y;
	 int width;
	 int height;
		public ControlP5 ctrl;
		public  Map<String, Group> ctrlGroups= new HashMap<String, Group>(); 
		public boolean isWaiting = false;
		public boolean isExisting= false;
		public  Accordion accordion;
		public Group group;
	 
	//constructors
	public Panel(int s_, int pr_, PApplet pa_){
		size_ = s_;
		priority_ = pr_;
		parent_ = pa_;
		mode_ = 'v';
	}
	 
	//methods
}

